-- GENERATED SPELL FOR [Thunderstomp Stegodon] --


function spell0_6504(pUnit, Event) --@Head Smash,n/a--
pUnit:FullCastSpellOnTarget(14102,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6504', 2344, 1)
end

function spell1_6504(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(15548,pUnit)
pUnit:RegisterEvent('Sorts_6504', 10273, 1)
end

function Sorts_6504(pUnit, Event)
local choix_sorts_6504 = math.random(0, 1)
if choix_sorts_6504 == 0 then
pUnit:RegisterEvent('spell0_6504', 1, 1)
end
if choix_sorts_6504 == 1 then
pUnit:RegisterEvent('spell1_6504', 1, 1)
end
end

function mob6504_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6504', math.random(1500, 3000), 1)
end

function mob6504_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6504_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6504_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6504, 1, 'mob6504_Action')
RegisterUnitEvent(6504, 2, 'mob6504_Leave')
RegisterUnitEvent(6504, 3, 'mob6504_Kill')
RegisterUnitEvent(6504, 4, 'mob6504_Die')
